﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<script type="text/javascript">
    if (top.location != self.location) {
        top.location = self.location;
    } 
</script>
<!DOCTYPE html>
<html>
<head id="Head1" runat="server">
    <title>登录</title>
    <style type="text/css">
        body
        {
            font-family: 微软雅黑, Verdana;
        }
        fieldset
        {
            padding: 8px;
            border: 1px solid #CCC;
            width: 287px; 
        }
        
        legend
        {
            font-size: 1.1em;
            font-weight: 600;
            padding: 2px 4px 8px 4px;
        }
        input[type="text"], input[type="password"]
        {
            width: 200px;
            border: 1px solid #CCC;
        }
        .editor-label
        {
            margin: 1em 0 0 0;
        }
        
        .editor-field
        {
            margin: 0.5em 0 0 0;
        }
        
        .field-validation-error
        {
            color: #ff0000;
        }
        .login
        {
            width: 545px;
            margin-top: 90px;
            margin-left: 25%;
        }
        .login .top
        {
            background: url(<%=Page.ResolveUrl("../../Content/images/main/login_top.gif")%>) left top no-repeat;
            width: 545px;
            height: 86px;
        }
        .login .title
        {
            position: absolute;
            background-color: #fff;
            margin-top: 54px;
            margin-left: 280px;
            font-weight: bolder;
        }
        .login .middle
        {
            background: url(<%=Page.ResolveUrl("../../Content/images/main/login_midbg.gif")%>) left top repeat-y;
            width: 545px;
        }
        .login .middle .left
        {
            float: left;
            width: 204px !important;
            padding-left: 6px !important;
            padding-left: 0px;
            margin-left: 6px;
            overflow: hidden;
            margin-left:12px;
        }
        
        .buttonOn
        {  
            background: url(<%=Page.ResolveUrl("../../Content/images/main/buttonOn_login.gif")%>) left top no-repeat;
            height: 21px;
            width: 109px;
            text-align: center;
            border: 0px;
            margin: 0px,140px,0px,37px;
            
        }
        
        .login .bottom
        {  
            background: url(<%=Page.ResolveUrl("../../Content/images/main/login_bottom.gif")%>) left top no-repeat;
            width: 545px;
            height: 18px;
        }
    </style>
    <link href="<%=Page.ResolveUrl("../../Content/css/easyui.css")%>" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        $(function () {
            $("#btnLogin").click(function () {
                var account = $('#UserAccount');
                var password = $('#Password');
                if (account.val() == '') {
                    $.messager.alert("提示信息", "用户名不能为空！", "warning");
                    return false;
                }
                else if (password.val() == '') {
                    $.messager.alert("提示信息", "密码不能为空！", "warning");
                    return false;
                }
                else {
                    return true;
                }
            });
        });
    </script>
</head>
<body>
    <div>
        <div id="login" class="login">
            <div class="top">
                <div class="title">
                    先河软件：授权管理系统</div>
            </div>
            <div class="middle">
                <div class="left">
                    <img alt="登录" src="<%=Page.ResolveUrl("../../Content/images/main/login_pic.gif")%>" />
                </div>
                <div class="right">
                    <div class="right2">
                        <fieldset style="border-top: 0px; border-left: #e8e8e8 1px solid; border-right: #e8e8e8 1px solid;
                            border-bottom: #e8e8e8 1px solid;">
                            <%using (Html.BeginForm())
                              { %>
                            <div class="editor-label">
                                用户名：
                            </div>
                            <div class="editor-field">
                                <input id="UserAccount" name="UserAccount" runat="server" type="text" value="admin" />
                            </div>
                            <div class="editor-label">
                                密码：
                            </div>
                            <div class="editor-field">
                                <input id="Password" name="Password" runat="server" value="admin" type="password" />
                            </div>
                            <p>
                                <input id="btnLogin" class="buttonOn" type="submit" value="登录系统" />
                                <font color="red">
                                    <%= ViewData["LoginErr"] %></font>
                            </p>
                            <%} %>
                            <p>
                                <br />
                            </p>
                        </fieldset>
                    </div>
                </div>
            </div>
            <div class="bottom">
            </div>
        </div>
    </div>
</body>
</html>
